package com.zhiqian.enums;

import lombok.Getter;

@Getter
public enum RpcError {
    SERVICE_NOT_IMPLEMENT_ANY_INTERFACE("服务没有实现任何接口"),
    SERVICE_NOT_FOUND("服务没有找到"),
    UNKNOWN_PACKAGE_TYPE("未知的数据包"),
    UNKNOWN_SERIALIZER("未知的序列化器"),
    SERVICE_NOT_REGISTERED("服务未注册"),
    FAILED_TO_CONNECT_TO_SERVICE_REGISTRY("注册中心初始化连接失败"),
    REGISTER_SERVICE_FAILED("注册服务失败"),
    GET_SERVICE_FAILED("获取服务失败"),
    UNKNOWN_PROTOCOL("未知协议"),
    UNKNOWN_ERROR("未知错误"),
    SERVICE_SCAN_PACKAGE_NOT_FOUND("启动类缺少 @ServiceScan 注解");
    private String message;
    RpcError(String message){
        this.message=message;
    }
}
